package top.boycharse.blog.bean.Response;

import top.boycharse.blog.dao.bean.Label;

public class LabelResponse {

    private Integer id;

    private String labelName;

    private String userName;

    public LabelResponse() {

    }

    public LabelResponse(Label label) {
        this.id = label.getId();
        this.labelName = label.getLabelName();
        this.userName = label.getUser().getUserName();
    }

    public LabelResponse(Integer id, String labelName, String userName) {
        this.id = id;
        this.labelName = labelName;
        this.userName = userName;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getLabelName() {
        return labelName;
    }

    public void setLabelName(String labelName) {
        this.labelName = labelName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }
}
